<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use mcOAuth\OAuth;
class Users extends Frontend
{
    protected $API_URL = 'https://graph.qq.com/';
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';
    protected $AuthorizeState = '';

    public function callback(){
//        $config=config('sns_login_config.qq');
//        $OAuth=OAuth::getInstance($config);
//        // $OAuth->getAccessToken();
//        $openid=$OAuth->getOpenID();
//        $userInfo=$OAuth->getUserInfo();
//        var_dump($openid);
//        var_dump($userInfo);
        // $this->redirect($config['success']);
    }

}
